<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="iso-8859-1"/>
<xsl:include href="settings.xsl"/>
<xsl:include href="convert.xsl"/>


<xsl:param name="page_id" select="/page/page_id"/>
	


<xsl:template match="/">

	<xsl:choose>
	<xsl:when test="//page/script_name='/ct/448/brochure_generate.asp'">
		<html>
		<head>
			<title><xsl:value-of select="//page/header"/></title>
			<META><xsl:attribute name="description"><xsl:value-of select="/page/description" disable-output-escaping="yes"/></xsl:attribute></META>
			<META><xsl:attribute name="keywords"><xsl:value-of select="/page/keywords" disable-output-escaping="yes"/></xsl:attribute></META>
			<META NAME="authors" CONTENT="MLS Solutions"/>
			<meta name="revisit-after" content="2 days"/>
			<META NAME="robots" CONTENT="index, follow"/>
			<META NAME="distribution" CONTENT="GLOBAL"/>
			<META NAME="classification" CONTENT="Recreation"/>
			<META NAME="copyright" CONTENT="Copyright 2003 MLS Solutions"/>
			<META HTTP-EQUIV="reply-to" CONTENT="info@yachtcouncil.org"/>
			<xsl:choose>
			<xsl:when test="//page/script_name='/ct/448/brochure_generate.asp'"><link rel="stylesheet" href="include/main.css" type="text/css"/></xsl:when>
			<xsl:otherwise><link rel="stylesheet" href="include/main.css" type="text/css"/></xsl:otherwise>
			</xsl:choose>		
			<xsl:apply-templates select="/page/script[@id='header']"/>
		</head>
		<body link="{$color_main_first}" vlink="{$color_main_first}" alink="{$color_main_first}" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" text="#000000" bgcolor="#FFFFFF">
			<xsl:apply-templates select="page"/>
		</body>
		</html>
	</xsl:when>
	<xsl:otherwise>
		<html>
		<head>
			<title><xsl:value-of select="//page/header"/></title>
			<META><xsl:attribute name="description"><xsl:value-of select="/page/description" disable-output-escaping="yes"/></xsl:attribute></META>
			<META><xsl:attribute name="keywords"><xsl:value-of select="/page/keywords" disable-output-escaping="yes"/></xsl:attribute></META>
			<META NAME="authors" CONTENT="MLS Solutions"/>
			<meta name="revisit-after" content="2 days"/>
			<META NAME="robots" CONTENT="index, follow"/>
			<META NAME="distribution" CONTENT="GLOBAL"/>
			<META NAME="classification" CONTENT="Recreation"/>
			<META NAME="copyright" CONTENT="Copyright 2003 MLS Solutions"/>
			<META HTTP-EQUIV="reply-to" CONTENT="info@yachtcouncil.org"/>
			<xsl:choose>
			<xsl:when test="//page/script_name='/ct/448/brochure_generate.asp'"><link rel="stylesheet" href="include/old_main.css" type="text/css"/></xsl:when>
			<xsl:otherwise><link rel="stylesheet" href="include/main.css" type="text/css"/></xsl:otherwise>
			</xsl:choose>		
			
			<xsl:apply-templates select="/page/script[@id='header']"/>
		</head>
		<body link="{$color_main_first}" vlink="{$color_main_first}" alink="{$color_main_first}" leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" text="#ffffff">
		<xsl:attribute name="bgcolor">
		<xsl:choose>
		<xsl:when test="//dark_bg"><xsl:value-of select="$color_main_third"/></xsl:when>
		<xsl:otherwise><xsl:value-of select="$bgcolor"/></xsl:otherwise>
		</xsl:choose>
		</xsl:attribute>
			<xsl:apply-templates select="page"/>
		</body>
		</html>
		
	</xsl:otherwise>
	</xsl:choose>
	
</xsl:template>
</xsl:stylesheet>
